﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using TyMES.Model.BaseInformation;
using TyMES.Model;

namespace TyMES.ViewModel.BaseInformation.MachineVMs
{
    public partial class MachineBatchVM : BaseBatchVM<Machine, Machine_BatchEdit>
    {
        public MachineBatchVM()
        {
            ListVM = new MachineListVM();
            LinkedVM = new Machine_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class Machine_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._Machine._StationCode")]
        public string StationCodeId { get; set; }
        [Display(Name = "_Model._Machine._MachineName")]
        public string MachineName { get; set; }
        [Display(Name = "_Model._Machine._Asset")]
        public string Asset { get; set; }
        [Display(Name = "_Model._Machine._RatedPower")]
        public float? RatedPower { get; set; }
        [Display(Name = "_Model._Machine._PersonCode")]
        public string PersonCode { get; set; }
        [Display(Name = "_Model._Machine._MachineStatus")]
        public EquipmentStatusEnum? MachineStatus { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}